/**
 * @Author: oldTea
 * @CreateTime: 2024-11-26
 * @Description:
 * @Version: 1.0
 */
package com.ambition.demo.juc;

/**
 *@Author: oldTea
 *@CreateTime: 2024-11-26
 *@Description:
 *@Version: 1.0
 */
public class ThreadUnsafeExample {

    private int count;

    public void add(){
        count++;
    }

    public int get(){
        return count;
    }
}


